<html lang="zh">
<head>
    <meta charset="UTF-8"/>
    <title>blg.controller-CartController</title>
    <style>

        :root {
            --monospace: "Lucida Console", Consolas, "Courier", monospace;
        }

        #markdown {
            font-family: "Open Sans", "Clear Sans", "Helvetica Neue", Helvetica, Arial, 'Segoe UI Emoji', sans-serif;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* Header
        -------------------- */

        #markdown h1, #markdown h2, #markdown h3 {
            cursor: default;
        }

        #markdown h1 {
            margin: 20px 0;
            text-align: center;
        }

        #markdown h2 {
            margin: 16px 0;
            padding-bottom: 8px;
            border-bottom: 1px solid #ddd;
        }

        #markdown h3 {
            position: relative;
            margin: 10px 0;
        }


        #markdown h4 {
            margin: 10px 0;
        }

        /* Text Formating
        -------------------- */

        #markdown p {
            margin: 12px 0;
        }

        #markdown code {
            margin: 0 2px;
            padding: 3px 5px;
            border-radius: 2px;
            color: rgb(236, 90, 22);
            background-color: #eee;
            font-family: var(--monospace);
        }

        /* Horizontal Rule
        -------------------- */

        #markdown hr {
            height: 2px;
            margin: 16px 0;
            border: none;
            background-color: #ccc;
        }

        /* Cites
        -------------------- */

        #markdown blockquote {
            border-left: 4px solid #0eaeec;
            padding: 10px 15px;
            color: #666;
            background-color: #dbf3fd;
        }

        /* Table
        -------------------- */

        #markdown table {
            border-spacing: 0;
            border-collapse: collapse;
        }

        #markdown table th, #markdown table td {
            padding: 6px 12px;
            border: 1px solid #dfe2e5;
        }

        #markdown table tr {
            background-color: #fff;
        }

        #markdown table thead tr, #markdown table tbody tr:nth-child(even) {
            background-color: #f8f8f8;
        }

        /* Code Block
        -------------------- */

        #markdown pre code {
            display: block;
            padding: 16px 20px;
            border: 1px solid #ddd;
            border-radius: 4px;
            background-color: #f8f8f8;
            color: #525252;
            font-size: 14px;
            line-height: 22px;
            white-space: pre;
            overflow-x: auto;
            font-family: var(--monospace);
        }

        /* List
        -------------------- */

        #markdown ul {
            padding-left: 20px;
            list-style-type: disc;
        }

        #markdown ul li {
            margin: 8px 0;
        }

        #markdown ul ul {
            list-style-type: circle;
        }

        #markdown ul ul ul {
            list-style-type: square;
        }

        /* Link
        -------------------- */

        #markdown a {
            color: #0eaeec;
            font-weight: bold;
        }

        /* Image
        -------------------- */

        #markdown img {
            display: block;
            max-width: 100%;
            height: auto;
            margin: 16px auto;
        }
    </style>

    <link rel="stylesheet"
          href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/base16/solarized-light.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
    <script>hljs.highlightAll();</script>
</head>

<body>
<article id='markdown'>
  <h1 id='获取用户的购物车'>获取用户的购物车</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/cart/</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">GET</code></pre>

<p ></p>
<h2 >入参</h2>
<blockquote>
<p >此接口无任何入参</p>
</blockquote>


<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 224,
  "data": [
    {
      "itemId": 557,
      "quantity": 326,
      "selected": 537
    },
    {
      "itemId": 557,
      "quantity": 326,
      "selected": 537
    }
  ],
  "message": "惭尾婪秀忆累员盖"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>List&lt;CartVO&gt;</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >└─ itemId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >商品ID</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ quantity<br/></td>
<td ><strong>Integer</strong><br/></td>
<td >商品数量</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ selected<br/></td>
<td ><strong>Integer</strong><br/></td>
<td >是否选中(0未选中 1选中)</td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>
<h1 id='减少用户购物车的库存'>减少用户购物车的库存</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/cart/decrease</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">POST</code></pre>

<p ></p>
<h3 >请求体类型</h3>
<pre><code class="language-json">applicatin/json</code></pre>

<p ></p>
<h2 >入参</h2>
<h3 >入参示例 (RequestBody)</h3>
<pre><code class="language-json">{
  "itemId": 754,
  "amount": 135
}</code></pre>

<p ></p>
<h3 >入参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong></th>
<th ><strong>必填</strong></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >amountChange<br/></td>
<td ><strong>AmountChange</strong><br/></td>
<td >否<br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >└─ itemId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >否<br/></td>
<td >商品id</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ amount<br/></td>
<td ><strong>int</strong><br/></td>
<td >否<br/></td>
<td >数量</td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 440,
  "data": true,
  "message": "鹏辽拉缺侮怀淡"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>Boolean</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>
<h1 id='增加用户购物车的库存'>增加用户购物车的库存</h1>
<p ></p>
<h2 >请求信息</h2>
<p ></p>
<h3 >请求地址</h3>
<pre><code class="language-json">http://192.168.72.1:8180/cart/increase</code></pre>

<p ></p>
<h3 >请求方法</h3>
<pre><code class="language-json">POST</code></pre>

<p ></p>
<h3 >请求体类型</h3>
<pre><code class="language-json">applicatin/json</code></pre>

<p ></p>
<h2 >入参</h2>
<h3 >入参示例 (RequestBody)</h3>
<pre><code class="language-json">{
  "itemId": 297,
  "amount": 717
}</code></pre>

<p ></p>
<h3 >入参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong></th>
<th ><strong>必填</strong></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >amountChange<br/></td>
<td ><strong>AmountChange</strong><br/></td>
<td >否<br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >└─ itemId<br/></td>
<td ><strong>Long</strong><br/></td>
<td >否<br/></td>
<td >商品id</td>
<td ><br/></td>
</tr>
<tr>
<td >└─ amount<br/></td>
<td ><strong>int</strong><br/></td>
<td >否<br/></td>
<td >数量</td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<h2 >出参</h2>
<h3 >出参示例</h3>
<pre><code class="language-json">{
  "code": 890,
  "data": false,
  "message": "箱哉型坊秤忆因蓑瘟虏逢括挟决芋"
}</code></pre>

<p ></p>
<h3 >出参字段说明</h3>
<p ></p>
<table>
<tr>
<th ><strong>字段</strong></th>
<th ><strong>类型</strong><br/></th>
<th ><strong>含义</strong></th>
<th ><strong>其他参考信息</strong></th>
</tr>
<tr>
<td >code<br/></td>
<td ><strong>int</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >data<br/></td>
<td ><strong>Boolean</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
<tr>
<td >message<br/></td>
<td ><strong>String</strong><br/></td>
<td ><br/></td>
<td ><br/></td>
</tr>
</table>

<p ></p>
<p ></p>

</article>
</body>
</html>